package com.zkthink.ceres.member.controller;

import com.zkthink.base.controller.PoiController;
import com.zkthink.base.service.SuperService;
import com.zkthink.ceres.member.service.MemberService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName MemberExcelController
 * @Description: MemberExcelController
 * @Author ck
 * @Date 2021/1/21
 * @Version V1.0
 **/
@Slf4j
@Validated
@RestController
@RequestMapping("/memberExcelController")
@Api(value = "MemberExcelController", tags = "导入商城会员信息")
@AllArgsConstructor
public class MemberExcelController implements PoiController {
    @Autowired
    private MemberService memberService;

    @Override
    public Class getEntityClass() {
        return null;
    }

    @Override
    public SuperService getBaseService() {
        return null;
    }


//    @ApiOperation(value = "导出Excel")
//    @RequestMapping(value = "/exportExcelTemplate", method = RequestMethod.POST, produces = "application/octet-stream")
//    public void exportExcelTemplate( HttpServletRequest request, HttpServletResponse response) {
//        Map<String, Object> map = new HashMap<>(5);
//        map.put(NormalExcelConstants.FILE_NAME, "http://snjt.oss-cn-beijing.aliyuncs.com/0000/2021/01/7267bc33-4552-4c3c-94af-945cfc8fbf34.xlsx");
//        PoiBaseView.render(map, request, response, "easypoiTemplateExcelView");
//    }
}
